/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.scheduling;

import hope.platform.data.server.schedule.header.CheckSiteConnectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/27 9:26
 */
@Component
public class SchedulingTask {

    @Autowired
    private CheckSiteConnectionService checkSiteConnectionService;

//    @Autowired
//    private CheckObservedDataService checkObservedDataService;

    /**
     * 定时做站点状态查询3分种一次
     */
    @Scheduled(fixedRate = 180000)
    public void checkSiteConnection() {
        checkSiteConnectionService.check();
    }

//    @Scheduled(fixedRate = 1000)
//    public void checkObservedData() {
//        checkObservedDataService.check();
//    }


}
